package com.csw.minDiskFile.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.csw.minDiskFile.entity.CloudFile;

/**
 * @author 1
 */
@Mapper
public interface CloudFileDao {
	public void addFile(CloudFile file);

	public List<CloudFile> selectFileListByFolderId(Integer folderId);

	public CloudFile selectFileById(Integer fileId);

	public List<CloudFile> selectPublicFile();

	public List<CloudFile> selectFileByFileName(Map<String, Object> params);

	public void deleteFileById(Integer fileId);

	public void deleteFileByFolderId(Integer folderId);

	public List<CloudFile> selectPhotoByUserId(Integer userId);

	public List<CloudFile> selectDocumentByUserId(Integer userId);

	public List<CloudFile> selectMovieByUserId(Integer userId);

	public List<CloudFile> selectMusicByUserId(Integer userId);

	public List<CloudFile> selectZipByUserId(Integer userId);

	public void changeFileAccessByFileId(Map<String, Object> params);
}
